<?
$sqlWhere = '';
$sqlWhere .= ' AND new_active = 1 ';
$db_select	= new db_query("SELECT *
									 FROM (categories_multi, news_multi) INNER JOIN news_hits ON new_id = nh_id
									 WHERE cat_id = new_category_id AND categories_multi.lang_id = " . $lang_id . $sqlWhere . "
									 ORDER BY new_hot DESC,new_date DESC LIMIT 5");
$count = mysql_num_rows($db_select->result);
if ($count > 0)
{
?>
<div class="module_small module_small_menu_product">
	<div class="title">
    	<div class="fl left_icon"></div>
        <div class="fl"><span lang="<?=$array_lang[$lang_id][0];?>"><?=tdt('Tin_noi_bat')?></span></div>
        <div class="fr right_icon"></div>
	</div>
    <div class="content menu_product">
    	<ul>
        <?
		$i = 0;
        while ($row = mysql_fetch_array($db_select->result))
		{
			++$i;
			$class = ($i==$count)?'end':'normal';
			$detail_url = generate_detail_url('news',$row['cat_id'],$row['new_id'],$row['new_title']);
		?>
        	<li class="<?=$class?>"><a href="<?=$detail_url?>"><span lang="<?=$array_lang[$lang_id][0]?>"><?=cut_string($row['new_title'],50)?></span></a></li>
        <?
		}
		?>
        </ul>
    </div>
</div>
<div class="module_bottom_small module_bottom_menu_product"><div class="fl"></div><div class="fr"></div></div>
<?
}
unset($db_select);
?>